package com.xqc.activiti.config;

//import org.activiti.engine.HistoryService;
//import org.activiti.engine.RepositoryService;
//import org.activiti.spring.ProcessEngineFactoryBean;
//import org.activiti.spring.SpringProcessEngineConfiguration;
import org.springframework.context.annotation.Configuration;

@Configuration
public class XqcActivitiConfig {

//    @Bean
//    public ProcessEngineFactoryBean processEngine(){
//        ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
//        processEngineFactoryBean.setProcessEngineConfiguration(new SpringProcessEngineConfiguration());
//        return processEngineFactoryBean;
//    }

//    @Bean
//    public RepositoryService repositoryService(){
//        try {
//            return processEngine().getObject().getRepositoryService();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
//
//    @Bean
//    public HistoryService historyService(){
//        try {
//            return processEngine().getObject().getHistoryService();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
}
